<%@page import="controller.Utils"%>
<%@page import="net.tanesha.recaptcha.ReCaptchaFactory"%>
<%@page import="net.tanesha.recaptcha.ReCaptcha"%>
<%@page import="java.net.InetAddress"%>
<%
String title = "Contact us";
String description = "Contact us  "+Utils.ValidDomain()+" - A Free SEO tool that provides free website analysis, traffic details, rankings, contact email ,similar site, same owner site , same ip site, optimization and promotion reports.";
String keywords = "contact,Domain name information,  Server information, Web site analysis, website traffic details, Website backlinks website IP, website ranking info";
String[] check = (String[]) request.getAttribute("check");
String success = (String) request.getAttribute("success");
%>

<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keywords %>"/>
</jsp:include>

	<div id="mainContent">
            	<div class="adv-1 content-center">
                	<%@ include file='/adv/banner.jsp'%>
                </div>
                <div id="leftSideContent">                
                	<div id="contactPage">
                        <section class="blockContent blockBlue">
                            <h3 class="title">Contact us</h3>
                            <form method="post" action="/contact" class="whoisForm">
                            	<p>If you have any questions, or comments and suggestions, please use the form below to contact us. Or you can mail to contact [at] <%=Utils.ValidDomain() %></p>                            	<label>
                                	<span>Your name : </span>
                                	<%=(check[0] != null)?"<p style='color:red;'>"+check[0]+"</p>":"" %>
                            		<input type="text" placeholder="Enter your name" name="name"/>
                                </label>
                                <label>
                                	<span>Your email : </span>
                                	<%=(check[1] != null)?"<p style='color:red;'>"+check[1]+"</p>":"" %>
                                	<input type="text" placeholder="Enter your email" name="email"/>
                                </label>
                                <label>
                                	<span>Your message :</span>
                                	<%=(check[2] != null)?"<p style='color:red;'>"+check[2]+"</p>":"" %>
                                	<textarea placeholder="Enter your message" name='mesage'></textarea>
                                </label>
                                <%=(check[3] != null)?"<p style='color:red;'>"+check[3]+"</p>":"" %>
								<script>
						        	var RecaptchaOptions = { theme : 'clean' };
						  		</script>
								<%
									//6LdXmcISAAAAAHz6FsABghup-EayldUCiKQyDPAk //public
									//6LdXmcISAAAAANPIv5ykGg3LAlBMnUQHzy3-Kiqo //private
						          ReCaptcha c = ReCaptchaFactory.newReCaptcha("6LezlM0SAAAAAIKbwFxNh-XJTQMiUoOLs8dkcUqn", "6LezlM0SAAAAACEvZbJ36aiWaONZ6PhnFFEs504l", false);
						          out.print(c.createRecaptchaHtml(null, null));
						        %>
                                <button type="submit">Send message</button>
                            </form>                            
                        </section>
                    </div>                                 	
                </div>
                <aside id="rightSideContent">
                	<div class="simpleBox box-blue">
                    	<ul id="sideMenu">
                        	<li><a href="/">Home</a></li>
                            <li><a href="/whois">Whois</a></li>
                            <li><a href="http://www.prapi.net" rel="nofollow">Pagerank</a></li>
                            <li><a href="/myip">Myip</a></li>
                            <li><a href="/contact">Contact us</a></li>
                        </ul>
                    </div>
                	<div><%@ include file='/adv/right.jsp'%></div>
                    
                </aside>
                <div class="clearbreak"></div>
            </div>

<%@ include file='/layout/footer.jsp'%>